<?php

namespace App\Http\Controllers;
use App\Models\RunTime;
use App\Models\User;
use Illuminate\Http\Request;
use Laravel\Lumen\Routing\Controller as BaseController;

class Controller extends BaseController
{
    //
    public function test(){

        echo 'success';
    }

    public function addRunTime(Request $request){
        $runtime=new RunTime;
        $runtime->userId=$request->input('userId');
        $runtime->runId=$request->input('runId');
        $runtime->length=$request->input('length');
        $runtime->save();
        echo 'add success';
    }
}
